// 处理多次点击方法
function dianji(fn) {
    let that = this;
    if (that.$onoff) {
        that.$onoff = false;
        fn();
        setTimeout(function () {
            that.$onoff = true;
        }, 1000)
		
    } else {
		this.$message.info('点击太频繁了~')
    }
}

// 处理发布动态多次点击
function fabuChange(fn) {
    let that = this;
	// console.log(that.$fabuoff)
    if (that.$fabuoff) {
        that.$fabuoff = false;
        fn();
        setTimeout(function () {
            that.$fabuoff = true;
        }, 3000)
		
    } else {
		// this.$message.info('点击太频繁了~')
    }
}
export {
    dianji,
	fabuChange
}